package engine

import (
	"webProject/crawler"
	"webProject/crawler/lagou/fetcher"
)


//todo 这里的err处理很粗糙
func Worker(request crawler.Request) (crawler.ParseResult, error){
	fetch := fetcher.Fetch(request.KD, request.PN)
	//fmt.Print(string(fetch))
	return request.Parser(fetch),nil
}
